<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>validate</title>
		<script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery.validate.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/messages_zh.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				$("#load").validate({
					rules:{
						name:{required:true},
						pw1:{required:true}
					}
				})
			})
		</script>
	</head>
	<body>
		<div id="text">
			<form action="#" method="post" id="load">
				<ul>
					<li>
					<label for="name">姓名</label>
					<input type="text" id="name" value="" />
					</li>
					<li>
					<label for="pw1">密码</label>
					<input type="password" id="pw1" value="" />
					</li>
					<li>
					<label for="pw2">再输入一次</label>
					<input type="password" id="pw2" value="" />
					</li>
					<li>
					<label for="email">邮箱</label>
					<input type="email" id="email" value="" />
					</li>
					<li>
					<label for="tel">手机号</label>
					<input type="text" id="tel" value="" />
					</li>
					<li>
						<input type="submit" name="" id="" value="提交" />
					</li>
				</ul>
			</form>
		</div>
	</body>
</html>
